package com.shop.zkmall.app.controller.a;

import com.shop.zkmall.app.service.shop.CereShopCommentService;
import com.shop.zkmall.commons.domain.shop.CereShopComment;
import com.shop.zkmall.commons.result.R;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("productComment")
@RequiredArgsConstructor
@Tag(name = "商品评价模块", description = "商品评价模块")
public class ProduceCommentController {


    private final CereShopCommentService cereShopCommentService;

    /**
     * 评价
     */
    @PostMapping("/saveLiveSetting")
    @Operation(summary = "评价")
    public R<?> saveLiveSetting(@RequestBody CereShopComment cereShopComment) {
        cereShopCommentService.insert(cereShopComment);
        return R.ok();
    }
}
